package com.sunny.shop.repository;

import com.sunny.shop.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CategoryRepository extends JpaRepository<Category,Long> {
    List<Category> findAllByBaseType(Integer baseType);
    List<Category> findAllByPid(Long pid);

    Category findOneById(Long id);
}
